// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios';

import api from './http/index'
import VueAxios from 'vue-axios'
import './assets/style.css'
import './assets/index.js'
import MyHeader from './views/pages/commom/Myheader.vue'
import MyFooter from './views/pages/commom/Myfooter.vue'

Vue.component("Myheader",MyHeader)
Vue.component("Myfooter",MyFooter)
Vue.use(VueAxios,axios)
Vue.use(router)
Vue.use(ElementUI) //使用elementUI
Vue.config.productionTip = false
Vue.use(api)
// 引入mockjs
require('mockjs')
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  render:  h=>h(App)
})
